package com.fan.shop.services;

import java.math.BigDecimal;
import java.util.List;

import com.fan.shop.domain.PurchaseLine;
import com.fan.shop.domain.PurchaseOrder;

public interface PurchaseOrderService extends ShopService{

	public PurchaseOrder getPurchaseOrder(String poNumber);
	public List<PurchaseOrder> getAllPurchaseOrders();
	
	public void addPurchaseOrder(PurchaseOrder purchaseOrder);

	public void updatePurchaseOrder(PurchaseOrder purchaseOrder);

	public void deletePurchaseOrder(PurchaseOrder purchaseOrder);
	
	public boolean hasPurchaseOrder(String poNumber);
	
	
	public List<String> getColumnNames();
	
	public BigDecimal getTotalPrice(String poNumber);
	public int getTotalQty(String poNumber);
	public List<PurchaseLine> getPurchaseLines(String poNumber);
}
